package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.DraftDealResponse;
import com.chinaums.fsp.sdk.pgt.params.DraftOrderHandleRequest;
import com.chinaums.fsp.sdk.pgt.params.DraftOrderHandleResponse;
/**
 * 平台核验指令
 * @author hty
 *
 */
public class PlatDraftTest extends BaseRequest{
	public void test() throws Exception {
		PgtRequestFactory rf = FACTORY.factory();

		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.TRANSACTION_VERIFICATION_INSTRUCTIONS.getTransCode());
		
		DraftOrderHandleRequest data = DraftOrderHandleRequest.newBuilder()
										.setInvoiceNo("231310002005220200410650175132")
										.setOrigServerTransId("1101012020041615323240549569")
										.setVerificationInstructions(0)
										.build();
		
		rf.transType(TransType.TRANSACTION_VERIFICATION_INSTRUCTIONS.getTransCode())
		.responseClass(DraftOrderHandleResponse.class)
		.data(data)
		;
		ResponseDataWrapper rdw = rf.post();
	
		this.print(rdw);
		
	}
}
